<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo form::open('blog/comment_add'); ?>
<fieldset>
  <legend><?php echo __('Add a comment'); ?></legend>
  <ol>
    <li>
	  <a href="javascript:;" onmousedown="$('#content').tinymce().show();">HTML</a>
	  <a href="javascript:;" onmousedown="$('#content').tinymce().hide();">Text</a>
      <?php
        echo Form::textarea('content',
							'',
							array('id' => 'content',
								  'name' => 'content',
								  'class' => 'tinymce',
								  'style' => 'height: 249px;
											  width: 715px;
											  border-color: #CCCCCC;
											  border-style: solid;
											  border-width: 1px;',
								 )
						   ) . PHP_EOL;
      ?>

    </li>
	<li>
	  <?php
	    echo Form::hidden('post',$post['id']);
	    echo Form::hidden('author',$user->id);
		echo Form::submit('submit', __('Submit'), array('class' => 'submit'));
	  ?>
	</li>
  </ol>
</fieldset>
<?php echo form::close(); ?>